﻿// Copyright (c) Kona Framework Team. All rights reserved.
// For continued development and updates, visit http://www.codeplex.com/kona
// For a copy of the license please vist: http://www.codeplex.com/kona/license

using Kona.Data.Core;
using Microsoft.AnalysisServices.AdomdClient;
using AdomdClient = Microsoft.AnalysisServices.AdomdClient;


namespace Kona.Data.Provider
{
    //TODO this connection pool assumes one connection string.  Need to handle multiple connection strings.
    public sealed class AdoMdConnectionPool : Core.Pool<AdomdClient.AdomdConnection>, IAdoMdConnectionPool
    {

        public AdoMdConnectionPool(IObjectFactory<AdomdConnection> objectFactory, int initialPoolSize, string connectionString)
            : base(objectFactory, initialPoolSize)
        {
            this.ConnectionString = connectionString;
        }

        public string ConnectionString { get; private set; }
    }
}
